<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<c:set var="date" value="<%= new Date() %>" />
<title>현재 시각</title>
[S] <fmt:formatDate value="${date}" type="both" dateStyle="short" timeStyle="short"/><br>
[M] <fmt:formatDate value="${date}" type="both" dateStyle="medium" timeStyle="medium"/><br>
[L] <fmt:formatDate value="${date}" type="both" dateStyle="long" timeStyle="long"/><br>
[F] <fmt:formatDate value="${date}" type="both" dateStyle="full" timeStyle="full"/><br>